| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Material.h
1 // Material.h
3 //
5
6 namespace nkAstraeus
7 {
15 class Material : public nkExport::Exportable
16 {
17 public :
18
24 Material (MATERIAL_TYPE type) noexcept ;
28 virtual ~Material () ;
29
30 // Getters
34 nkMemory::StringView getName () const ;
38 nkGraphics::Shader* getShader () const ;
42 MATERIAL_TYPE getType () const ;
43
44 // Setters
53 void setName (nkMemory::StringView value) ;
54
55 // Load
61 virtual bool load () = 0 ;
65 virtual void unload () = 0 ;
66
67 // Import / export
68 virtual void exportClassToTree (nkExport::Node* rootNode) override ;
69 virtual void importClassFromTree (nkExport::Node* rootNode) override ;
70 } ;
71 }
nkAstraeus::Material::getShader
nkGraphics::Shader * getShader() const
nkAstraeus::Material::getType
MATERIAL_TYPE getType() const
nkAstraeus::MATERIAL_TYPE
MATERIAL_TYPE
Lists all materials supported.
Definition: MaterialType.h:12
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkAstraeus::Material::~Material
virtual ~Material()
nkAstraeus::Material::Material
Material(MATERIAL_TYPE type) noexcept
nkAstraeus::Material::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:16
nkAstraeus::Material::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkAstraeus::Material::load
virtual bool load()=0
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkAstraeus
Encompasses all API of component NilkinsAstraeus.
Definition: BlurComplexEffect.h:7
nkAstraeus::Material::getName
nkMemory::StringView getName() const
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkAstraeus::Material::setName
void setName(nkMemory::StringView value)
nkAstraeus::Material
Base class for all materials in the component.
Definition: Material.h:16
nkAstraeus::Material::unload
virtual void unload()=0